/// 认证状态管理 - Authentication State Management
///
/// 管理认证相关的表单状态和验证
/// Manages authentication form state and validation
class AuthState {
  /// 手机注册/登录 - Phone registration/login
  String phone;
  String phoneSmsCode;
  String phonePassword;
  String? phoneError;
  String? phoneSmsError;
  String? phonePasswordError;
  int phoneSmsCountdown;
  
  /// 邮箱注册/登录 - Email registration/login
  String email;
  String emailCode;
  String emailPassword;
  String? emailError;
  String? emailCodeError;
  String? emailPasswordError;
  int emailCountdown;

  /// 通用状态 - Common state
  bool isSmsLogin;
  bool agreeTerms;
  String? errorMessage;
  bool isLoading;
  
  /// 用户是否已登录 - Whether user is logged in
  bool isLoggedIn;

  AuthState({
    this.phone = '',
    this.phoneSmsCode = '',
    this.phonePassword = '',
    this.phoneError,
    this.phoneSmsError,
    this.phonePasswordError,
    this.phoneSmsCountdown = 0,
    this.email = '',
    this.emailCode = '',
    this.emailPassword = '',
    this.emailError,
    this.emailCodeError,
    this.emailPasswordError,
    this.emailCountdown = 0,
    this.isSmsLogin = true,
    this.agreeTerms = false,
    this.errorMessage,
    this.isLoading = false,
    this.isLoggedIn = false,
  });
}